package com.example.pachong.quanliang;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/** 圈量科技文章实体
 * @version 1.0
 * @Author gxh
 * @Date 2022/8/25 13:48
 */
@Data
public class Entity {
    //文章标题
    @ExcelProperty(value = "文章标题")
    private  String name;

    //阅读数
    @ExcelProperty(value = "阅读数")
    private  String count;

    //发布日期
    @ExcelProperty(value = "发布日期")
    private  String date;

    //图片地址
    @ExcelProperty(value = "图片地址")
    private  String url;
    public Entity(String name,String count,String date,String url) {
        this.name = name;
        this.count = count;
        this.date = date;
        this.url = url;
    }

    @Override
    public String toString() {
        return "Entity{" +
                "name='" + name + '\'' +
                ", count='" + count + '\'' +
                ", date='" + date + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
